package cz.zcu.fav.ratdroid.activity.calendar.reservation;

import android.os.Bundle;
import cz.zcu.fav.ratdroid.bean.Period;

public class ViewReservationActivity extends AbstractReservationActivity
{

	private Period period;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		period = (Period) getIntent().getSerializableExtra(
				Period.SINGLE_PERIOD_IDENTIFIER);
		super.onCreate(savedInstanceState);
		getNumberOfWeeksButton().setEnabled(false);
		getPeriodicalSwitch().setEnabled(false);
		getSinceButtonDate().setEnabled(false);
		getSinceButtonTime().setEnabled(false);
		getToButtonDate().setEnabled(false);
		getToButtonTime().setEnabled(false);
		getValidSwitch().setEnabled(false);
	}

	@Override
	public Period loadBackgroudData()
	{
		return period;
	}
}
